package sky.dao.Impl;

import org.springframework.stereotype.Repository;
import sky.dao.AirportDAO;
import sky.domain.Airport;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Gauss
 * Date: 23.04.13
 * Time: 10:28
 * To change this template use File | Settings | File Templates.
 */

@Repository
public class AirportDAOImpl extends AbstractDAOImpl<Airport> implements AirportDAO {

    @Override
    @SuppressWarnings("unchecked")
    public List<String> listCodes() {
        return template.find("select code from Airport");
    }

    @Override
    protected Class<Airport> getDomainClass() {
        return Airport.class;
    }
}
